// websocket返回的数据字典表
var websocketConstant = {
  "flag": "f",
  "isBlock": "i0",
  "data": "D",
  "displayName": "d",
  "show": "s",
  "pid": "P",
  "ppath": "p1",
  "type": "t",
  "isLeaf": "L",
  "ischanged": "I1",
  "path": "p",
  "view": "V",
  "api": "A",
  "tag": "T",
  "id": "I",
  "isFrozen": "i1",
  "value": "v",
  "events": "e",
  "stationId": "S",
  "eventId": "E",
  "isHover": "I2",
  "iconName": "i3",
  "isStone": "i2",
  "label": "L1",
  "name": "n",
  "cmd": "c",
  "actions": "a",
  "option": "O",
  "treeData": "TD"
}
var wsConstant = {}
// key,value互换，然后去掉相同的项
for (const key in websocketConstant) {
  const element = websocketConstant[key];
  if(element != key){
    wsConstant[element] = key;
  }
}
export default wsConstant;